package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.Commodity;

import java.util.List;

public interface ICommodityService {

    void saveOrUpdate(Commodity commodity);
    
    void deleteByPrimaryKey(Long id);

    /**
     * 查询单个
     * @param rid
     * @return
     */
    Commodity get(Long rid);

    /**
     * 查询全部
     * @return
     */
    List<Commodity> listAll();
    
    
}
